Rate Limit Configuration: Header value match action#526
Conversation
|
@lyft/network-team |
| * ("header_match", "<descriptor_value>") | ||
|
|
||
|
|
||
| .. _config_http_conn_man_route_table_rate_limit_headers: |
There was a problem hiding this comment.
I think we now have this text in potentially 3 places in the docs. Can we de-dup this and just link to it from all 3 places?
| "enum" : ["header_value_match"] | ||
| }, | ||
| "descriptor_value" : {"type" : "string"}, | ||
| "headers" : { |
There was a problem hiding this comment.
This is also duplicated several times now. Can we de-dup and do a sub-schema check in the ConfigUtility code?
| @@ -0,0 +1,40 @@ | |||
| #include "config_utility.h" | |||
There was a problem hiding this comment.
Did you change any code in config_utility or is it just copy/paste to a new file without any changes?
There was a problem hiding this comment.
OK not a big deal but in the future I would do a separate code move PR, just easier to review.
mattklein123
left a comment
There was a problem hiding this comment.
looks good other than small de-dup comments
source/common/json/json_validator.h
Outdated
|
|
||
| class JsonValidator { | ||
| public: | ||
| /* |
There was a problem hiding this comment.
nit: move this comment to class level, you are also missing a '*' in the comment opening.
| HeaderData(const Http::LowerCaseString& name, const std::string& value, const bool is_regex) | ||
| : name_(name), value_(value), regex_pattern_(value_, std::regex::optimize), | ||
| is_regex_(is_regex) {} | ||
| struct HeaderData : public Json::JsonValidator { |
There was a problem hiding this comment.
nit: public inheritance not needed
|
|
||
| descriptor_value | ||
| *(required, string)* The value to use in the descriptor entry. | ||
| :ref:`headers<config_http_conn_man_route_table_route_headers>` |
There was a problem hiding this comment.
nit: newline before this line
Signed-off-by: John Plevyak <jplevyak@gmail.com>
Description: when the server pointer was moved from being captured in the post init callback to outside of it https://github.com/lyft/envoy-mobile/pull/498/files#diff-b5c0c85b8d3df6960fe582b70fe1c122L112 to https://github.com/lyft/envoy-mobile/pull/498/files#diff-79839c4e6bee0a2fa78e0f8215db7433R64 we introduced the possibility that the captured pointer pointer to an invalid memory address. This PR returns the server capture to inside the callback. Risk Level: med - moving pointer captures from synchronous to inside the event loop Signed-off-by: Jose Nino <jnino@lyft.com> Signed-off-by: JP Simard <jp@jpsim.com>
Description: when the server pointer was moved from being captured in the post init callback to outside of it https://github.com/lyft/envoy-mobile/pull/498/files#diff-b5c0c85b8d3df6960fe582b70fe1c122L112 to https://github.com/lyft/envoy-mobile/pull/498/files#diff-79839c4e6bee0a2fa78e0f8215db7433R64 we introduced the possibility that the captured pointer pointer to an invalid memory address. This PR returns the server capture to inside the callback. Risk Level: med - moving pointer captures from synchronous to inside the event loop Signed-off-by: Jose Nino <jnino@lyft.com> Signed-off-by: JP Simard <jp@jpsim.com>
**Commit Message** This adds a basic documentation about `aigw` CLi recently implemented merged. **Related Issues/PRs (if applicable)** Closes #412 --------- Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.